import mitt from "mitt";
import type { Emitter } from "mitt";

// @ts-ignore
const emitter: Emitter<Events> = window.emitter || (window.emitter = mitt());
export default emitter;
